(function(rt){var templates=rt.templates,attrs=function(){return rt.attrs.apply(rt,arguments)},_=function(){return rt._.apply(rt,arguments)},img=function(){return rt.img.apply(rt,arguments)},imgURL=function(){return rt.imgURL.apply(rt,arguments)},imgSize=function(){return rt.imgSize.apply(rt,arguments)},avatar=function(){return rt.avatar.apply(rt,arguments)},url=function(){return rt.url.apply(rt,arguments)},mkurl=function(){return rt.mkurl.apply(rt,arguments)},escape=function(){return rt.escape.apply(rt,arguments)},
__t=rt.templates,emerge=function(){return rt.renderSync.apply(rt,arguments)};

__t["signup/signup_step2"]=function(locals){var buf=[];with(locals||{}){var interp,_user=page.user||page.user_info;
buf.push("<div"),
buf.push(attrs({id:"signup"})),
buf.push("><a"),
buf.push(attrs({href:"index.php"})),
buf.push("><h1"),
buf.push(attrs({id:"login_logo"})),
buf.push("></h1></a><div"),
buf.push(attrs({"class":"login_bar"})),
buf.push("></div>"),_user.username==''?
buf.push("<h3>欢迎你！完善下你的信息，以后你就可以使用该邮箱和密码来登录宝宝拍了。</h3>"):
buf.push("<h3>欢迎你！"+escape((interp=page.user_info.realname||page.user_info.username)==null?"":interp)+"，接下来只要简单设置以下信息就可以了</h3>"),
buf.push("<div"),
buf.push(attrs({"class":"avatar"})),
buf.push("><img"),
buf.push(attrs({id:"current_avatar",src:(_user.username!=''?avatar(_user,"sq192"):'static/bidcms/i/default.jpg')})),
buf.push("/><iframe style='display:none;' name='hiddenframe'></iframe><form target='hiddenframe' action='models/changeavatar.php' method='post' enctype='multipart/form-data'><div id='avatar_loading' style='display:none;'><img src='views/js/i/load.gif'/></div><table style='width:200px;margin-top:5px;'><tr><td><div style='position:relative;'><input type='file' style='position:absolute;z-index:1000;width:100px;height:30px;opacity:0;filter:alpha(opacity=0);' name='myavatar' value='选择图片'/><input type='button' style='z-index:0' value='选择图片'/></div></td><td><input type='submit' onclick=\"$$('#avatar_loading').show();\" value='更新头像'/></td></tr></table></form></div><div"),
buf.push(attrs({"class":"signup_form"})),
buf.push("><form"),
buf.push(attrs({action:"index.php",method:"post","class":"Form FancyForm AuthForm"})),
buf.push("><ul><li><div"),
buf.push(attrs({"class":"input"})),
buf.push(">");
var uname=_user.realname||_user.username;
buf.push("<input"),
buf.push(attrs({id:"id_username",name:"username",type:"text",value:""+uname+""})),
buf.push("/><label>昵称</label><span"),
buf.push(attrs({"class":"fff"})),
buf.push("></span><div"),
buf.push(attrs({id:"username_msgr","class":"msgr left-arrow"})),
buf.push("><span"),
buf.push(attrs({"class":"txt"})),
buf.push("></span><span"),
buf.push(attrs({"class":"arrow"})),
buf.push(">◣</span><span"),
buf.push(attrs({"class":"arrow-mask"})),
buf.push("></span></div></div></li><li><div"),
buf.push(attrs({"class":"input"})),
buf.push(">");
var uemail=_user?_user.email||"":"";
buf.push("<input"),
buf.push(attrs({id:"id_email",name:"email",type:"text",value:""+uemail+""})),
buf.push("/><label>登陆邮箱地址</label><span"),
buf.push(attrs({"class":"fff"})),
buf.push("></span><div"),
buf.push(attrs({id:"email_msgr","class":"msgr left-arrow"})),
buf.push("><span"),
buf.push(attrs({"class":"txt"})),
buf.push("></span><span"),
buf.push(attrs({"class":"arrow"})),
buf.push(">◣</span><span"),
buf.push(attrs({"class":"arrow-mask"})),
buf.push("></span></div></div></li><li><div"),
buf.push(attrs({"class":"input"})),
buf.push("><input"),
buf.push(attrs({id:"id_password",name:"password",type:"password"})),
buf.push("/><label>密码</label><span"),
buf.push(attrs({"class":"fff"})),
buf.push("></span><div"),
buf.push(attrs({id:"password_msgr","class":"msgr left-arrow"})),
buf.push("><span"),
buf.push(attrs({"class":"txt"})),
buf.push("></span><span"),
buf.push(attrs({"class":"arrow"})),
buf.push(">◣</span><span"),
buf.push(attrs({"class":"arrow-mask"})),
buf.push("></span></div></div></li></ul>"),
//微博关注开始
page.binding.service_name=="weibo"&&!page.following?(
buf.push("<div"),
buf.push(attrs({"class":"non_inputs group"})),
buf.push("><label"),
buf.push(attrs({"class":"follow"})),
buf.push("><input"),
buf.push(attrs({id:"follow_huaban",type:"checkbox",name:"follow_huaban",value:"1"})),
buf.push("/><span>关注宝宝拍网的新浪微博</span></label></div>")):page.binding.service_name=="qzone"&&!page.following&&(
buf.push("<div"),
buf.push(attrs({"class":"non_inputs group"})),
buf.push("><label"),
buf.push(attrs({"class":"follow"})),
buf.push("><input"),
buf.push(attrs({id:"follow_huaban",type:"checkbox",name:"follow_huaban",value:"1",checked:"checked"})),
buf.push("/><span>关注宝宝拍网的腾讯微博</span></label><label"),
buf.push(attrs({"class":"follow"})),
buf.push('>在QQ空间上关注我们：<iframe src="http://open.qzone.qq.com/like?url=http%3A%2F%2Fuser.qzone.qq.com%2F1802552897&type=button&style=2" allowtransparency="true" scrolling="no" border="0" frameborder="0"></iframe></label></div>')),
//微博关注结束
buf.push("<div"),
buf.push(attrs({"class":"non_inputs"})),
buf.push("><label"),
buf.push(attrs({"class":"follow disclaimer"})),
buf.push("><input"),
buf.push(attrs({id:"disclaimer",type:"checkbox",name:"disclaimer",value:"1",checked:"checked"})),
buf.push('/><span>我已经认真阅读并接受<a href="index.php?con=about&act=help&id=2" target="_blank">《宝宝拍网免责声明》</a></span></label></div><div'),
buf.push(attrs({"class":"non_inputs"})),
buf.push("><a"),
buf.push(attrs({id:"submit",href:"#",onclick:"return false;","class":"btn btn18 rbtn"})),
buf.push("><strong> "+escape((interp=_user?"提交":"注册")==null?"":interp)+'</strong><span></span></a></div></form></div></div><script>(function(a){function f(b,c){var d=a(b+"_msgr");return d.getFirst("span").set("html",c),d.getParent().addClass("showmsgr"),d.show(),!1}function g(b){var c=a(b+"_msgr");c&&c.hide()}var b,c,d,e,h=this.submitForm=function(){var g=b.get("value"),h=c.get("value"),i=d.get("value"),j=a("follow_huaban"),k=a("tweet_weibo"),l=a("id_tweet_weibo");if(g.trim()=="")return f("username","请输入昵称");if(h.trim()=="")return f("email","请输入您的邮箱地址");if(!~h.indexOf("@"))return f("email","邮箱格式不正确");if(i.trim()=="")return f("password","请输入密码");var m={commit:"1",con:"user","act":"register",username:g,email:h,password:i};return j&&j.get("checked")&&(m.follow_huaban=1),k&&k.get("checked")&&(m.tweet_weibo=1,m.tweet_weibo_text=l.value),e.disable(),(new Request.JSON({url:"index.php",data:m,onSuccess:function(a){if(a.err){e.enable();if(a.fieldErrors){for(var b in a.fieldErrors){f(b,a.fieldErrors[b].join("<br/>"));}return}return f("email",a.msg)}app.req.user&&app.req.user.status&&app.req.user.status.sts&&Cookie.write("newbietask",1,{path:"index.php",domain:"."+app.host}),setTimeout(function(){a.redirect?window.location.href=a.redirect:window.location.href="index.php?con=user"},1e3)}})).post(),!1};window.addEvent("domready",function(){b=a("id_username"),c=a("id_email"),d=a("id_password"),b&&new FancyInput(b),new FancyInput(c),new FancyInput(d),e=new Button("submit",{click:h});try{b&&b.focus()}catch(f){}$$("input").addEvent("blur",function(a){g(a.target.get("name"))}),document.id("disclaimer").addEvent("click",function(){this.checked?e.enable():e.disable()})})})(document.id)</script>')}return buf.join("")},
__t["signup/signup"]=function(locals){var buf=[];with(locals||{}){var interp,binding=page.binding;
buf.push("<div id='signup'>"),
buf.push("<a href='index.php'>"),
buf.push("<h1 id='login_logo'>"),
buf.push("</h1></a><div"),
buf.push(attrs({id:"mv_item","class":"slow-transition"})),
buf.push("><a"),
buf.push(attrs({href:"index.php?con=user&act=siteregister",id:"show_huaban_video","class":"sexy-button"})),
buf.push("><span>点我直接注册</span></a>"),
buf.push('</div><div'),
buf.push(attrs({"class":"login_bar"})),
buf.push("></div>"),binding?(
buf.push("<h3>对不起！"+escape((interp=binding.user_info.username)==null?"":interp)+"，"),binding.service_name=="weibo"?
buf.push("这个微博帐号已经注册过宝宝拍，请先退出微博登录，"):binding.service_name=="douban"?
buf.push("这个豆瓣帐号已经注册过宝宝拍，请先退出豆瓣登录，"):binding.service_name=="renren"?
buf.push("这个人人帐号已经注册过宝宝拍，请先退出人人登录，"):binding.service_name=="qzone"?
buf.push("这个QQ空间帐号已经注册过宝宝拍，请先退出QQ空间登录，"):binding.service_name=="tqq"&&
buf.push("这个腾讯微博帐号已经注册过宝宝拍，请先退出腾讯微博登录，"),
buf.push("重新注册。或者<a"),
buf.push(attrs({href:"/login/"})),
buf.push(">从这里登录</a></h3><div"),
buf.push(attrs({"class":"avatar"})),
buf.push("><img"),
buf.push(attrs({id:"current_avatar",src:avatar(binding.user_info,"fw222"),"class":"fl"})),
buf.push("/></div>")):
buf.push("<h3>嗨！你也可以选择下方合作网站帐号直接登录宝宝拍，一分钟完成注册</h3>"),
buf.push("<div"),
buf.push(attrs({"class":"social_buttons"})),
buf.push("><div"),
buf.push(attrs({"class":"inset"})),
buf.push("><a"),
buf.push(attrs({href:"models/weibo/login.php","class":"weibo login-button"})),
buf.push("><div"),
buf.push(attrs({"class":"logo_wrapper"})),
buf.push("><span"),
buf.push(attrs({"class":"logo"})),
buf.push("></span></div><span>用微博帐号注册</span></a></div><div"),
buf.push(attrs({style:"margin-right:0","class":"inset"})),
buf.push("><a"),
buf.push(attrs({href:"models/douban/login.php","class":"douban login-button"})),
buf.push("><div"),
buf.push(attrs({"class":"logo_wrapper"})),
buf.push("><span"),
buf.push(attrs({"class":"logo"})),
buf.push("></span></div><span>用豆瓣帐号注册</span></a></div><div"),
buf.push(attrs({"class":"inset"})),
buf.push("><a"),
buf.push(attrs({href:"models/renren/login.php","class":"renren login-button"})),
buf.push("><div"),
buf.push(attrs({"class":"logo_wrapper"})),
buf.push("><span"),
buf.push(attrs({"class":"logo"})),
buf.push("></span></div><span>用人人帐号注册</span></a></div><div"),
buf.push(attrs({style:"margin-right:0","class":"inset"})),
buf.push("><a"),
buf.push(attrs({href:"models/login/index.php?type=qq","class":"qzone login-button"})),
buf.push("><div"),
buf.push(attrs({"class":"logo_wrapper"})),
buf.push("><span"),
buf.push(attrs({"class":"logo"})),
buf.push('></span></div><span>用QQ帐号注册</span></a></div></div></div>')}return buf.join("")}})(app);